package com.iplay.dahua.chapter1;

/**
 * 模板方法模式
 * @author dangwu
 * @since 2021/3/9 5:42 下午
 */
public class OperationAdd extends Operation {

    @Override
    public double getResult() {
        return getNumberA() + getNumberB();
    }
}
